package com.xiaobai.clientapp;

import com.xiaobai.clientapp.lang.ApiResponse;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

@FeignClient(value = "spike-provider")
public interface SpikeProvider {

    @PostMapping("/oauth2/getToken")
    ApiResponse<TokenResponse> getToken(@RequestBody TokenRequest tokenRequest);
}
